package org.xdq.springdemo.demo;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
public class Service2Controller {

    @GetMapping("/s2-t1")
    public String hello(HttpSession session){
        return "第二个服务的t1,当前uid:"+session.getAttribute("uid");
    }

}
